Skip to content

Agent Flow: list an IDE chat once, not also as its Claude Code transcript (#326, ide) - #429

Merged
aMonteSl merged 1 commit into
idefrom
claude/project-thread-df2z6c-ide
Dec 2, 2026
Merged

aMonteSl merged 1 commit into
idefrom
claude/project-thread-df2z6c-ide

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Found in Adrián's manual test of #326 (Watch in XR from an IDE chat): the scene's Agent sessions list showed the same chat twice, once as the live IDE chat ("Tests fallidos") and once as a Claude Code transcript titled by its first prompt.

Cause: an IDE chat runs Claude Code over ACP (claude-agent-acp), which starts the SDK session with the ACP session id, so Claude Code writes ~/.claude/projects/<folder>/<acp session id>.jsonl. Transcript discovery picked that file up as a second source.

Fix:

  • AgentTraceSource gets an optional agentSessionId(); PushAgentTraceSource stores it (setAgentSessionId).
  • listAgentTraceSources leaves out a transcript whose id names a live source's agent session (claude-code:<id>, codex:rollout-...-<id>), via the exported coveredByLive.
  • The IDE feed sets the id when it first sees a chat (from state.agentSessionId) and on the agent-session event.

The core part goes to v1.3.0 in a sibling PR.

Tests

  • agentFlowCore.test.cjs: a live chat hides the transcript with its agent session id, and the transcript comes back once the chat goes away.
  • apps/ide/test/agentFlowFeed.test.ts: the feed hides the transcript on the agent-session event, and a chat first seen with a known id starts hidden.
  • npm test: 1441 + 1194 tests, 0 failures.

Generated by Claude Code

…ript (#326)

An IDE chat runs Claude Code over ACP, and Claude Code writes its own
transcript of that conversation under the ACP session id. The scene's
session picker listed both: the live chat and the transcript, titled by
its first prompt. A live source now carries the agent's session id, and
the listing leaves out the transcript that id names (Claude Code
<id>.jsonl, Codex rollout-...-<id>.jsonl).

The IDE feed sets the id when the chat is first seen and on the
agent-session event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants